/*
 * Copyright (c) 2024. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.github.xiaoymin.boot3.controller;

import com.github.xiaoymin.boot3.model.Dept;
import com.github.xiaoymin.boot3.model.FileResp;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("dept")
@Tag(name = "部门管理")
public class DeptController {

    @Operation(summary = "根据部门编号获得部门对象")
    @Parameters({@Parameter(name = "deptno", description = "部门编号", in = ParameterIn.PATH)})
    @GetMapping("q/byid/{deptno}")
    public ResponseEntity<Dept> getDept(@PathVariable("deptno") Integer deptno) {
        return ResponseEntity.ok(new Dept());
    }
}
